package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Banner;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * Created by 甘静斌 on 2020-08-07 13:35
 */

/**
 *
 * Banner持久化操作接口
 */
public interface BannerRepository extends MongoRepository<Banner,String> {


    List<Banner> findByTypeAndState(int type, int state, Pageable pageable);
}
